<!--
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- 미리보기 팝업 -->
<div class="ddp-pop-preview ddp-type" *ngIf="isShowFl">
  <!-- top -->
  <div class="ddp-ui-top">
    <div class="ddp-data-name">
      {{'msg.metadata.ui.codetable.detail.used.column.dictionary' | translate}} ({{getTotalContentsCount}})
    </div>
    <em class="ddp-btn-popup-close" (click)="onClickClose()"></em>
  </div>
  <!-- //top -->
  <!-- cpmtemts -->
  <div class="ddp-ui-preview-contents ddp-add">
    <div class="ddp-table-scroll">
      <!-- table -->
      <table class="ddp-table-form ddp-table-type3">
        <colgroup>
          <col width="20%">
          <col width="20%">
          <col width="*">
        </colgroup>
        <thead>
        <tr>
          <th class="ddp-cursor" (click)="onClickSort('logicalName')">
            {{'msg.metadata.th.dictionary.column.name' | translate}}
            <em class="ddp-icon-array-default2" *ngIf="selectedContentSort.key !== 'logicalName' || selectedContentSort.sort === 'default'"></em>
            <em class="ddp-icon-array-asc2" *ngIf="selectedContentSort.key === 'logicalName' && selectedContentSort.sort === 'asc'"></em>
            <em class="ddp-icon-array-des2" *ngIf="selectedContentSort.key === 'logicalName' && selectedContentSort.sort === 'desc'"></em>
          </th>
          <th class="ddp-cursor" (click)="onClickSort('name')">
            {{'msg.metadata.ui.dictionary.create.recommendation.column.name' | translate}}
            <em class="ddp-icon-array-default2" *ngIf="selectedContentSort.key !== 'name' || selectedContentSort.sort === 'default'"></em>
            <em class="ddp-icon-array-asc2" *ngIf="selectedContentSort.key === 'name' && selectedContentSort.sort === 'asc'"></em>
            <em class="ddp-icon-array-des2" *ngIf="selectedContentSort.key === 'name' && selectedContentSort.sort === 'desc'"></em>
          </th>
          <th>
            {{'msg.metadata.th.dictionary.description' | translate}}
          </th>
        </tr>
        </thead>
        <tbody>
        <tr *ngFor="let item of columnDictionaryList">
          <td (click)="onClickLogicalName(item)">
            {{item.logicalName}}
          </td>
          <td>
            {{item.name}}
          </td>
          <td>
            <span class="ddp-txt-long">{{item.description}}</span>
          </td>
        </tr>
        </tbody>
      </table>
      <!--// table -->
    </div>
    <div class="ddp-box-add-link " *ngIf="isMoreContents()" (click)="onClickMoreList()">
      <span class="ddp-link-type">{{'msg.comm.ui.more' | translate}} <em class="ddp-icon-view"></em></span>
    </div>
  </div>
  <!-- //cpmtemts -->
</div>
<!-- //미리보기 팝업 -->
